<template>
	<view class="my-container">
		<!-- 用户登录组件 -->
    <my-login v-if="!token"></my-login>
    
    <!-- 用户信息组件 -->
    <my-userinfo v-else></my-userinfo>
	</view>
</template>

<script>
  import { mapState } from 'vuex'
  import tabBarBadge from '../../mixins/tabbar-badge.js'
  export default {
    mixins: [tabBarBadge],
		data() {
			return {
				
			}
		},
    
    computed: {
      ...mapState('m_user', ['token'])
    }
	}
</script>

<style lang="scss">
page,
.my-container {
  height: 100%;
}
</style>
